﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Excel2Word
{
    [Serializable]
    public class SourceElement
    {
        /// <summary>
        /// 常量定义
        /// </summary>
        public const string FIELD_TYPE_NORMAL = "NORMAL";
        public const string FIELD_TYPE_PIC = "PIC";
        public const string FIELD_TYPE_TABLE = "TABLE";

        //字段名称
        public String fieldName{get;set;}
        //字段值
        public String fieldValue { get; set; }
        //字段类别:normal，pic,table
        public String filedType{ get; set; }
        //工作表名
        public String sheetName { get; set; }
        //地址
        public String fieldAddress { get; set; }
        //取值地址
        public String valueAddress { get; set; }
        //定位类别
        public String locateType { get; set; }
        //定位参数
        public String locatePara { get; set; }

        [NonSerialized]
        public Microsoft.Office.Interop.Excel.Range range1;

        [NonSerialized]
        public Microsoft.Office.Interop.Excel.Range range2;

    }
}
